package com.lwp.demo.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author kaka
 */
@Service("ServerLoginService")
public class ServerLoginServiceImpl implements ServerLoginService {
    private Logger logger=LoggerFactory.getLogger(ServerLoginServiceImpl.class);
    @Override
    public boolean checkLoginInfo(String username, String password) {
        logger.debug(username+":"+password);
        if (username==null||password==null){
            return false;
        }
        if (username.equals("kaka")&&password.equals("1234")){
            return true;
        }
        return false;
    }
}
